package entity.offer.bid;

import entity.domain.value.Value;

import java.io.Serializable;
import java.util.List;

public class Bid implements Serializable{

    private List<Value> values;

    public Bid(){}

    public Bid(List<Value> values){
        this.values = values;
    }

    public List<Value> getValues() {
        return values;
    }

    public void setValues(List<Value> values) {
        this.values = values;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("[");
        for(Value value: values){
            builder.append(value+", ");
        }
        builder.delete(builder.lastIndexOf(","), builder.lastIndexOf(" ")+1);
        builder.append("]");
        return builder.toString();
    }
}
